<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My Virtual Library</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>

<body>

<div id="wrapper">
<h1><em>MyVirtual</em> Library</h1>
<jsp:include page="header.jsp" />
<div id="topcon">
<div id="topcon-inner">
<h2>Welcome to My Virtual Library</h2>
<p><jsp:include page="description.jsp" /></p>
</div>
</div>

<div id="content">
<div id="body">
<div class="left" /><img src="images/addfriendsmain.jpg" width="250"
	height="200" /></div>
<div class="right">
<p>Search by first name and last name or email address or phone
above.</p>

<br />
<s:actionerror /> 
<s:actionmessage />

<s:form action="DeleteFriend.action" method="POST">
<table border="1" width="80%">
	<tr>
		<td> </td>
		<td>First Name</td>
		<td>Last Name</td>
		<td>Email Address</td>
		<td>Phone Number</td>
	</tr>

	<s:hidden name="isChecked" value="1"/>
    <s:iterator value="resultList">
    <tr>
    	 <td><s:checkbox theme="simple" name="isChecked" fieldValue="%{userId}"/></td>
         <td><s:property value="firstName"/></td>
         <td><s:property value="lastName"/></td>   
         <td><s:property value="userName"/> </td> 
         <td><s:property value="phoneNumber"/></td>
    </tr>
    </s:iterator>
</table>
	<br></br>
	<s:submit name="antifriend" value="Antifriend" align="right"/>
	<s:submit name="deleteFriend" value="Delete Friend" align="right"/>
	<br></br>

<table border="1" width="80%">
	<tr>
		<td> </td>
		<td>First Name</td>
		<td>Last Name</td>
		<td>Email Address</td>
		<td>Phone Number</td>
	</tr>

	<s:hidden name="isAFChecked" value="1"/>
    <s:iterator value="resultAFList">
    <tr>
    	 <td><s:checkbox theme="simple" name="isAFChecked" fieldValue="%{userId}"/></td>
         <td><s:property value="firstName"/></td>
         <td><s:property value="lastName"/></td>   
         <td><s:property value="userName"/> </td> 
         <td><s:property value="phoneNumber"/></td>
    </tr>
    </s:iterator>
</table>		
<br></br>
<s:submit name="friend" value="Friend" align="right"/>
<s:submit name="deleteAntifriend" value="Delete Antifriend" align="right"/>
</s:form>
</div>



<div class="clear"></div>
</div>
<jsp:include page="footer.html" /></div>
</body>
</html>
